package com.abaaba.project2.bean.vo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

@NoArgsConstructor
@AllArgsConstructor
public class AdminOrderStatisticsVO {

    /**
     * errno : 0
     * data : {"columns":["day","orders","customers","amount","pcr"],"rows":[{"amount":4989,"orders":4,"customers":3,"day":"2020-04-27","pcr":1663},{"amount":11668,"orders":6,"customers":2,"day":"2021-06-05","pcr":5834},{"amount":916,"orders":1,"customers":1,"day":"2021-06-06","pcr":916}]}
     * errmsg : 成功
     */

    private int errno;
    private DataBean data;
    private String errmsg;

    public int getErrno() {
        return errno;
    }

    public void setErrno(int errno) {
        this.errno = errno;
    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public String getErrmsg() {
        return errmsg;
    }

    public void setErrmsg(String errmsg) {
        this.errmsg = errmsg;
    }
    @NoArgsConstructor
    @AllArgsConstructor
    public static class DataBean {
        private List<String> columns;
        private List<RowsBean> rows;

        public List<String> getColumns() {
            return columns;
        }

        public void setColumns(List<String> columns) {
            this.columns = columns;
        }

        public List<RowsBean> getRows() {
            return rows;
        }

        public void setRows(List<RowsBean> rows) {
            this.rows = rows;
        }
        @Data
        @NoArgsConstructor
        @AllArgsConstructor
        public static class RowsBean {
            /**
             * amount : 4989
             * orders : 4
             * customers : 3
             * day : 2020-04-27
             * pcr : 1663
             */

            private BigDecimal amount;
            private int orders;
            private int customers;
            private String day;
            private BigDecimal pcr;

        }
    }
}
